package com.naizhuai.network.entity;

import java.io.Serializable;

/**
 * 返回的资源类
 * Created by code_han on 2018/1/25.
 */

public class Resource<T> implements Serializable {
    public T getSource() {
        return source;
    }

    public void setSource(T source) {
        this.source = source;
    }

    private T source;

    private String resultCode;

    private ResourceResult result;


    @Override
    public String toString() {
        return source.toString();
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public void setResult(ResourceResult result) {
        this.result = result;
    }

    public ResourceResult getResult() {
        return result;
    }
}
